package com.edu.control.deploy.constant;

public enum DeployStatus {

    EXCEPTION(-1, "业务部署异常"),
    FAILED(-2, "部署异常"),
    LIMITED_TIME(-3, "部署状态查询超过受限次数"),
    INTERRUPT(-4, "函数状态查询被中断"),
    SYNC(-5, "部署状态同步失败"),
    SUCCESS(0, "部署已完成"),
    NEW(1, "正在创建函数"),
    BUILD(2, "正在构建函数"),
    PUSH(3, "正在推送函数"),
    DEPLOY(4, "正在部署函数"),
    POD_FIND(5, "正在查询函数部署状态"),
    PART_POD(6, "正在启动函数"),
    ;

    DeployStatus(int code, String title) {
        this.code = code;
        this.title = title;
    }

    private int code;

    private String title;

    public int getCode() {
        return code;
    }

    public String getTitle() {
        return title;
    }
}
